<template>
  <component :is="page"></component>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import list from '../components/list.vue'
import edit from '../components/edit.vue'

const defailtPage = 'edit'
export default defineComponent({
  components: { list, edit },
  setup() {
    const page = ref(defailtPage)
    return { page }
  }
})
</script>
